package typejump.objects;

import typejump.AnimationManager;
import typejump.Settings;
import typejump.Swagger;
import typejump.engine.GameAction;

/**
 * A powerup item that increases the maximum swag based
 * on settings.txt's swagdrop.amount variable.
 * @author g
 *
 */
public class SwagDropItem extends Item {
	public SwagDropItem() {
		super(AnimationManager.SWAG_DROP, "swag_drop.wav", new GameAction() {
			public void act(GameObject caller, GameObject other) {
				Swagger.getInst().increaseMaxSwag(Settings.getInt("swagdrop.amount"));
			}
		});
		scaleToImage();
	}
	
	public static SwagDropItem createObject(String params) {
		return new SwagDropItem();
	}
}
